//
//  CenterPageLogicBridge.m
//  Screen
//
//  Created by Natsu on 8/29/16.
//  Copyright © 2016. All rights reserved.
//‘

#import <Foundation/Foundation.h>
#import <React/RCTBridgeModule.h>

@interface RCT_EXTERN_MODULE(JsAndroid, NSObject)//WTF

RCT_EXTERN_METHOD(checkThirdStatus:(RCTResponseSenderBlock)value)

RCT_EXTERN_METHOD(requestCamAuth)

RCT_EXTERN_METHOD(checkAlbAuth:(RCTResponseSenderBlock)result)
RCT_EXTERN_METHOD(riseIap:(NSInteger)price)
RCT_EXTERN_METHOD(camAuthStatus:(RCTResponseSenderBlock)status)
RCT_EXTERN_METHOD(jsGetServerUrl:(RCTResponseSenderBlock)failed success:(RCTResponseSenderBlock)success)
RCT_EXTERN_METHOD(jsGetVersionName:(RCTResponseSenderBlock)failed success:(RCTResponseSenderBlock)success)
RCT_EXTERN_METHOD(jsVersion:(RCTResponseSenderBlock)failed success:(RCTResponseSenderBlock)success)
RCT_EXTERN_METHOD(jsClearCache:(RCTResponseSenderBlock)failed success:(RCTResponseSenderBlock)success)
RCT_EXTERN_METHOD(jsVersionqqdownloader:(RCTResponseSenderBlock)failed success:(RCTResponseSenderBlock)success)
RCT_EXTERN_METHOD(jsOpenThirdPartyLoginActivity:(NSString*)type)
RCT_EXTERN_METHOD(openUrl:(NSString*)url)
RCT_EXTERN_METHOD(jsUserExit:(RCTResponseSenderBlock)failed success:(RCTResponseSenderBlock)success)
RCT_EXTERN_METHOD(jsGetLoginUserInfo:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject)
RCT_EXTERN_METHOD(checkDevice:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject)
RCT_EXTERN_METHOD(jsOpenShareActivity:(NSString*)imgPath type:(NSString*)type failed:(RCTResponseSenderBlock)failed  success:(RCTResponseSenderBlock)success)
RCT_EXTERN_METHOD(getImgPath:(RCTResponseSenderBlock)path)
RCT_EXTERN_METHOD(confirmPay:(NSString*)payType productType:(NSInteger)productType productId:(NSString*)productId userToken:(NSString*)userToken)
@end
